import { createApp } from 'vue'
import './style.css'
import App from './App.vue'

// 引入路由
import router from './router'

//引入element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//引入icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 引入pinia
import { createPinia } from 'pinia'
//实例化pinia
const pinia = createPinia()

const app = createApp(App);

app.use(router).use(ElementPlus).use(pinia).mount('#app')

//全局注册图标组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
